#ifndef __CM_MEDIA_COMMON_H__
#define __CM_MEDIA_COMMON_H__

#include "Poco/RefCountedObject.h"
#include "cm_base/Common.h"

namespace cm_media
{
    enum{
        CmMediaFail,
        CmMediaSucess
    };

    typedef enum{
        MediaTypeNull,
        MediaTypeMjpeg,
        MediaTypeBmp
    }MediaType;

    typedef enum{
        PinDirectionNull,
        PinDirectionInput,
        PinDirectionOutput
    }PinDirection;

    typedef enum{
        FilterStateVoid    = 0,
        FilterStateNull    = 1,
        FilterStateReady   = 2,
        FilterStatePause   = 3,
        FilterStatePlay    = 4,
        FilterStatePending = 5
    }FilterState;

    typedef enum{
        GraphStateVoid,
        GraphStateNull,
        GraphStateReady,
        GraphStatePause,
        GraphStatePlay,
        GraphStatePending
    }GraphState;

    typedef enum{
        PinEventUpdate
    }PinEvent;

    enum{
        NotificationTypeNull,
        NotificationTypeOnCaptureTimer
    };

}

#endif